﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="/Apm/js/CMSList.js" type="text/javascript"></script>
</head>
<body>
    <div>
        <button id="addtab" class="layui-btn">iframe在父页面增加tab</button>
    </div>
    <hr />
    <div>
        <button id="deletetab" class="layui-btn">iframe在父页面删除tab</button>
    </div>
    <hr />
    <div>
        <button id="words" class="layui-btn">连接字符串</button>
    </div>
</body>
</html>
<script type="text/javascript">
    $("#addtab").click(function () {
        parent.AddTab('test', '/Test/Test.html', '<img src="/icon/computer_go.png" />', '测试');
    })

    $("#deletetab").click(function () {
        parent.DeleteTab('test');
    })

    $("#words").click(function () {
        //连接字符串方法，性能高
        var buf = [];

        for (var i = 0; i < 100; i++) {

            buf.push(i.toString()+'条');

        }

        var all = buf.join(""); 
        alert(all);
    })
</script>